import java.io.File;

public class Demo2 {
    public static void main(String[] args) {
        File file = new File("text/aa/ww");
        System.out.println(file.exists());
        System.out.println(file.isDirectory());
        System.out.println("=================================");
        //创建目录
        //file.mkdir();
        //创建多级目录
        file.mkdirs();
        System.out.println(file.exists());
        System.out.println(file.isDirectory());
    }
}
